package oop.java0324.firm;

/**
 * 员工有姓名，年龄，性别，职务，薪水等属性
 */
public class Employee {
    String no;
    String name;
    int age;
    String gender;//性别
    String duty;//职务
    double salary;//薪水

    public Employee() {
    }

    public Employee(String no, String name, int age, String gender, String duty, double salary) {
        this.no = no;
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.duty = duty;
        this.salary = salary;
    }

    public void showInfo() {
        System.out.println("工号:" + no + ",姓名:" + name + ",年龄:" + age + "岁,性别:" + gender + ",职务:" + duty + ",薪水:" + salary);
    }

    public void showInfoSalary() {
        System.out.println("薪水:" + salary + "元，工号:" + no + ",姓名:" + name + ",年龄:" + "岁,性别:" + gender + ",职务:" + duty);
    }
}
